namespace SV_BFC_USING_STRUCT {
#include <sys/types.h>

#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#include <arpa/inet.h>

void bind_socket(void) {

	int server_sockfd;
	int server_len;
	struct sockaddr_in server_address;

	unlink("server_socket");
	server_sockfd = socket(AF_INET, SOCK_STREAM, 0);

	server_address.sin_family = AF_INET;
	server_address.sin_port = 21;
	server_address.sin_addr.s_addr = htonl(INADDR_ANY);

	server_len = sizeof(struct sockaddr_in);

	bind(server_sockfd, (struct sockaddr*)&server_address, server_len);
}


#include <sys/types.h>

#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#include <arpa/inet.h>

void bind_socket(void) {

	int server_sockfd;
	int server_len;
	struct sockaddr_in server_address;

	unlink("server_socket");
	server_sockfd = socket(AF_INET, SOCK_STREAM, 0);

	server_address.sin_family = AF_INET;
	server_address.sin_port = 21;
	server_address.sin_addr.s_addr = inet_addr("192.168.1.10");

	server_len = sizeof(struct sockaddr_in);

	bind(server_sockfd, (struct sockaddr*)&server_address, server_len);
}
}}